import React from 'react';
import Page1 from "../pages/page1";
import Page2 from "../pages/page2";

const routes = [
    {
        key: 'page',
        path: '/',
        title: 'page',
        redirect: '/page1',
        children: [
            {
                key: 'page-page1',
                path: '/page1',
                component: Page1,
                exact: true,
                title: 'page1'
            },
            {
                key: 'page-page2',
                path: '/page2',
                component: Page2,
                exact: true,
                title: 'page2'
            }
        ]
    }
]

export default routes;